package io.github.talelin.latticy.feign;

import io.github.talelin.latticy.model.oms.WmsUserDO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName：WmsFeignClient
 * @Author: ljj
 * @Date: 2022/5/26 9:20
 */
@FeignClient(value = "wms-server")
public interface WmsUserFeignClient {

    /**
     * 根据id获取用户
     * @param id
     * @return
     */
    @GetMapping("/cms/user/getUserById/{id}")
    WmsUserDO getUserById(@PathVariable int id);

}
